3.113 \(\int \frac{A+B x}{\sqrt{b x+c x^2}} \, dx\)

Optimal. Leaf size=55 \[ \frac{B \sqrt{b x+c x^2}}{c}-\frac{(b B-2 A c) \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{c^{3/2}} \]

[Out]

(B*Sqrt[b*x + c*x^2])/c - ((b*B - 2*A*c)*ArcTanh[(Sqrt[c]*x)/Sqrt[b*x + c*x^2]])
/c^(3/2)

_______________________________________________________________________________________

Rubi [A]  time = 0.0624613, antiderivative size = 55, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158 \[ \frac{B \sqrt{b x+c x^2}}{c}-\frac{(b B-2 A c) \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{c^{3/2}} \]

Antiderivative was successfully verified.

[In]  Int[(A + B*x)/Sqrt[b*x + c*x^2],x]

[Out]

(B*Sqrt[b*x + c*x^2])/c - ((b*B - 2*A*c)*ArcTanh[(Sqrt[c]*x)/Sqrt[b*x + c*x^2]])
/c^(3/2)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 7.72201, size = 48, normalized size = 0.87 \[ \frac{B \sqrt{b x + c x^{2}}}{c} + \frac{\left (2 A c - B b\right ) \operatorname{atanh}{\left (\frac{\sqrt{c} x}{\sqrt{b x + c x^{2}}} \right )}}{c^{\frac{3}{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((B*x+A)/(c*x**2+b*x)**(1/2),x)

[Out]

B*sqrt(b*x + c*x**2)/c + (2*A*c - B*b)*atanh(sqrt(c)*x/sqrt(b*x + c*x**2))/c**(3
/2)

_______________________________________________________________________________________

Mathematica [A]  time = 0.0737004, size = 79, normalized size = 1.44 \[ \frac{\sqrt{x} \sqrt{b+c x} (2 A c-b B) \log \left (\sqrt{c} \sqrt{b+c x}+c \sqrt{x}\right )+B \sqrt{c} x (b+c x)}{c^{3/2} \sqrt{x (b+c x)}} \]

Antiderivative was successfully verified.

[In]  Integrate[(A + B*x)/Sqrt[b*x + c*x^2],x]

[Out]

(B*Sqrt[c]*x*(b + c*x) + (-(b*B) + 2*A*c)*Sqrt[x]*Sqrt[b + c*x]*Log[c*Sqrt[x] +
Sqrt[c]*Sqrt[b + c*x]])/(c^(3/2)*Sqrt[x*(b + c*x)])

_______________________________________________________________________________________

Maple [A]  time = 0.008, size = 78, normalized size = 1.4 \[{A\ln \left ({1 \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){\frac{1}{\sqrt{c}}}}+{\frac{B}{c}\sqrt{c{x}^{2}+bx}}-{\frac{Bb}{2}\ln \left ({1 \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){c}^{-{\frac{3}{2}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((B*x+A)/(c*x^2+b*x)^(1/2),x)

[Out]

A*ln((1/2*b+c*x)/c^(1/2)+(c*x^2+b*x)^(1/2))/c^(1/2)+B*(c*x^2+b*x)^(1/2)/c-1/2*B*
b/c^(3/2)*ln((1/2*b+c*x)/c^(1/2)+(c*x^2+b*x)^(1/2))

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/sqrt(c*x^2 + b*x),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [A]  time = 0.289004, size = 1, normalized size = 0.02 \[ \left [\frac{2 \, \sqrt{c x^{2} + b x} B \sqrt{c} -{\left (B b - 2 \, A c\right )} \log \left ({\left (2 \, c x + b\right )} \sqrt{c} + 2 \, \sqrt{c x^{2} + b x} c\right )}{2 \, c^{\frac{3}{2}}}, \frac{\sqrt{c x^{2} + b x} B \sqrt{-c} -{\left (B b - 2 \, A c\right )} \arctan \left (\frac{\sqrt{c x^{2} + b x} \sqrt{-c}}{c x}\right )}{\sqrt{-c} c}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/sqrt(c*x^2 + b*x),x, algorithm="fricas")

[Out]

[1/2*(2*sqrt(c*x^2 + b*x)*B*sqrt(c) - (B*b - 2*A*c)*log((2*c*x + b)*sqrt(c) + 2*
sqrt(c*x^2 + b*x)*c))/c^(3/2), (sqrt(c*x^2 + b*x)*B*sqrt(-c) - (B*b - 2*A*c)*arc
tan(sqrt(c*x^2 + b*x)*sqrt(-c)/(c*x)))/(sqrt(-c)*c)]

_______________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{A + B x}{\sqrt{x \left (b + c x\right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x+A)/(c*x**2+b*x)**(1/2),x)

[Out]

Integral((A + B*x)/sqrt(x*(b + c*x)), x)

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.290491, size = 81, normalized size = 1.47 \[ \frac{\sqrt{c x^{2} + b x} B}{c} + \frac{{\left (B b - 2 \, A c\right )}{\rm ln}\left ({\left | -2 \,{\left (\sqrt{c} x - \sqrt{c x^{2} + b x}\right )} \sqrt{c} - b \right |}\right )}{2 \, c^{\frac{3}{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/sqrt(c*x^2 + b*x),x, algorithm="giac")

[Out]

sqrt(c*x^2 + b*x)*B/c + 1/2*(B*b - 2*A*c)*ln(abs(-2*(sqrt(c)*x - sqrt(c*x^2 + b*
x))*sqrt(c) - b))/c^(3/2)